/*
 * Created on 01/05/2008
 */
package com.apbetioli.mapr.util.properties;

/**
 * Adapted from:
 * http://www.guj.com.br/posts/list/35919.java
 * 
 * @author Alexandre Parra Betioli
 */
public class PropertiesLoaderImpl {

    public static String getValue( final String propertiesFileName, final String key) {
        PropertiesLoader loader = new PropertiesLoader( propertiesFileName );
        return (String) ((loader.getValue(key) == null || loader.getValue(key).trim().isEmpty()) ? null : loader.getValue(key).trim());
    }
}
